feat: digest-pin Node 22, harden compose, attest provenance + SBOM#20
Merged
feat: digest-pin Node 22, harden compose, attest provenance + SBOM#20
Conversation
…SBOM
- Dockerfile: bump from node:20-alpine (EOL) to node:22-alpine pinned to
sha256:cb15fca92530… Dependabot's docker ecosystem will refresh this.
- docker-compose.yml: enable read_only rootfs, /tmp tmpfs, cap_drop ALL,
no-new-privileges:true. These are starter defaults — comments explain
how to relax them per-workload.
- cd.yml:
- Build job emits provenance + SBOM (build-push-action native flags)
plus an explicit anchore/sbom-action CycloneDX export.
- actions/attest-build-provenance@v3 signs the digest and pushes the
attestation to the registry, getting us SLSA Build L3 alignment.
- VPS deploy IMAGE switches from tag-based (":latest" / ":${version}")
to digest-based (@${steps.build.outputs.digest}) so the rollout pulls
exactly the artifact we just attested.
- permissions: + id-token:write, attestations:write (required by the
attestation action).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the 2026-05-01 audit:
Changes
node:20-alpine(EOL 2026-04-30) →node:22-alpine@sha256:cb15fca…read_only,/tmptmpfs,cap_drop: [ALL],security_opt: no-new-privileges. Comments explain when to relax.docker/build-push-actionnow emitsprovenance: true+sbom: trueanchore/sbom-actionexports CycloneDX JSON as artifactactions/attest-build-provenance@v3signs digest, pushes attestation to GHCRIMAGEswitches from:tagto@sha256:digestpermissions:+id-token: write,attestations: writeTest plan
docker pull+docker runagainst the deployed digest